package io.github.yuegod.clean.acl.client;

import io.github.yuegod.clean.acl.ApiAclClient;
import io.github.yuegod.clean.acl.api.Api;
import io.github.yuegod.clean.acl.api.ApiFactory;
import io.github.yuegod.clean.acl.enumeration.Action;
import io.github.yuegod.clean.acl.enumeration.ApiType;
import io.github.yuegod.clean.acl.model.Request;
import io.github.yuegod.clean.acl.model.Result;

import java.util.Map;

/**
 * @author quziwei
 * @date 2021/8/5 8:57
 **/
public class Client implements ApiAclClient {

    @Override
    public Result doExec(Request request, Action action, ApiType apiType) {
        Api api = ApiFactory.getApi(apiType);
        return api.doExec(request, action);
    }
}
